package com.edu.cdp.service;

import com.edu.cdp.DTO.AddStaffDTO;
import com.edu.cdp.DTO.PageDTO;
import com.edu.cdp.DTO.StaffDTO;
import com.edu.cdp.common.PageResult;
import com.edu.cdp.domain.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Yang Can
* @description 针对表【staff】的数据库操作Service
* @createDate 2024-05-30 20:48:14
*/
public interface StaffService extends IService<Staff> {
    Staff newUpdate(StaffDTO staff);

    Staff newAdd(AddStaffDTO staff);

    List<Staff> staffByName(String name);

    List<Staff> getBySex(String sex);

    Staff login(String jobNumber, String password);

    PageResult pageQuery(PageDTO page);

    Staff updateAvatar(Integer id, MultipartFile avatar) throws Exception;
}
